【使用篇】文件操作 - gfile

参考:https://zhuanlan.zhihu.com/p/31536538

说明

之前介绍的都是读取文件的方式,现在介绍的是tensorflow自己封装的文件操作api

功能

连接本地文件、hdfs文件、云存储文件等,使用相应接口存储、访问、加载指定文件路径

函数

tf.gfile.ListDirectory(dirname)

功能:列举dirname下的所有文件

results matching ""

    No results matching ""